package com.kuizii.base.api;


public class FeignResponseException extends RuntimeException {

    public FeignResponseException(String message, int statusCode) {
        this.setMessage(message);
        this.setStatusCode(statusCode);
    }
    public FeignResponseException(String message, int statusCode,String url) {
        this.setMessage(message);
        this.setStatusCode(statusCode);
        this.url=url;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    private String url;

    private String message;

    private int statusCode;

    Object data;
    private Throwable cause;
    private Integer errorCode;
    private String detailMsg;

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    @Override
    public Throwable getCause() {
        return cause;
    }

    public void setCause(Throwable cause) {
        this.cause = cause;
    }

    public Integer getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(Integer errorCode) {
        this.errorCode = errorCode;
    }

    public String getDetailMsg() {
        return detailMsg;
    }

    public void setDetailMsg(String detailMsg) {
        this.detailMsg = detailMsg;
    }

    public int getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(int statusCode) {
        this.statusCode = statusCode;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }


}
